home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13186 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: ruthless.demon.co.uk!ravi
  2. From: Ravi Cheema <ravi@ruthless.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: IPC Question
  5. Date: Fri, 5 Apr 1996 02:03:57 +0100
  6. Organization: Runsoft Corp.
  7. Distribution: world
  8. Message-ID: <ruaVpAA9FHZxEwjm@ruthless.demon.co.uk>
  9. References: <31606E63.2F20@cybernex.net>
  10. NNTP-Posting-Host: ruthless.demon.co.uk
  11. X-NNTP-Posting-Host: ruthless.demon.co.uk
  12. MIME-Version: 1.0
  13. X-Newsreader: Turnpike Version 1.12 <RgQ9LxdC7CwdhlQNRYqQ0ig1yt>
  14.  
  15. In article <31606E63.2F20@cybernex.net>, Frank Rachel
  16. <frachel@cybernex.net> writes
  17. >What is the best way to do the following: I want to have a "control" program 
  18. >send 
  19. >data to another program for processing. Basically, I will have 'x' copies of a 
  20. >program running, and they will just sit there waiting until the control programs 
  21. >sends them information to process. This is going to be done under AIX 3.2. Any 
  22. >suggestions would be greatly appreciated.
  23. >
  24. >-Frank Rachel
  25.  
  26. Hi,
  27.  
  28. Are the processes communicating with each other local or remote?
  29.  
  30. I'm currently working on a IPC mechanism that uses TCP/IP stream sockets
  31. and UDP broadcasts as methods of communication between processes both
  32. locally and on remote machines. The TCP/IP stream sockets allow very
  33. fast data transfers between processes and the UDP broadcasts are used
  34. for control messages between processes.
  35.  
  36. However if your processes are always local then you should consider
  37. using shared memory as an IPC mechanism.
  38.  
  39. If you require more information then please let me know.
  40.  
  41. ____________________________________________________________________________
  42. Ravi Cheema                        "We take a handful of sand from the
  43. <ravi@ruthless.demon.co.uk>        endless landscape of awareness around us
  44. <ravi@osm.co.uk>                   and call that handful of sand the world."
  45. ____________________________________________________________________________
  46.